//
//  MarketSubAuctionCell.m
//  ZITHER
//
//  Created by imac on 2018/6/13.
//  Copyright © 2018年 MinesTime. All rights reserved.
//

#import "MarketSubAuctionCell.h"
@interface MarketSubAuctionCell ()
@property (weak, nonatomic) IBOutlet UIView *BGView;
@property (weak, nonatomic) IBOutlet UIView *cornerView;

@property (weak, nonatomic) IBOutlet UIButton *exchangeButton;

@property (weak, nonatomic) IBOutlet UILabel *dealPriceLabel;
@property (weak, nonatomic) IBOutlet UILabel *valuationPriceLabel;
@property (weak, nonatomic) IBOutlet UILabel *addressTimeLabel;
@property (weak, nonatomic) IBOutlet UILabel *companyNameLabel;
@end
@implementation MarketSubAuctionCell

- (void)awakeFromNib {
    [super awakeFromNib];
    [_BGView setCornerRadiusWithRadius:4 isMasks:NO];
    [_BGView setShadowType1WithColor:[UIColor defaultShadowColor] offset:CGSizeZero opacity:1 radius:3];
    [_cornerView setCornerRadiusWithRadius:4 isMasks:YES];
}
- (void)setModel:(WatchDetailBaseModel_Info_HQInfo_AuctionList *)model {
    _model = model;
    _companyNameLabel.text = _model.company_name;
    _dealPriceLabel.text = _model.transaction_price;
    _valuationPriceLabel.text = _model.estimate_price;
    _addressTimeLabel.text = kSTRING_FORMAT(@"%@ | %@",[_model.create_time timeSegmentation], _model.location);
}
@end
